/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package util;

import entities.Domain;

/**
 *
 * @author Dragan
 */
public class GridConf {

    public static final String QUERIES_FILE_NAME = "grid_queries";
    private static final double ALLOWED_MAINT_COST = 0.8E16;
    private static final double RHO = 0.2;
    private static DwConfiguration conf;
    private static Domain domain;

    public static DwConfiguration getDwConfiguration() throws Exception {
        if (conf == null) {
            domain = new ISDC().getDomain();
            conf = new DwConfiguration(domain, QueryUtils.loadQueries(QUERIES_FILE_NAME, domain),
                    ALLOWED_MAINT_COST, RHO);
        }
        return conf;
    }
}
